<?php
use think\Route;

/*网站后台路由*/

//Login  登录模块路由
Route::rule('login','admin/Login/login');
Route::rule('dologin','admin/Login/dologin');
Route::rule('logout','admin/Login/logout');

//Index  首页模块路由
Route::rule('index','admin/Index/index');

//Banner Banner图模块路由
Route::rule('banlist','admin/Banner/bannerList');
Route::rule('banaddpage','admin/Banner/banAddPage');
Route::rule('banadd','admin/Banner/banAdd');
Route::rule('banupdatepage','admin/Banner/banUpdatePage');
Route::rule('banupdate','admin/Banner/banUpdate');

//User 用户模块路由
Route::rule('userlist','admin/User/userList');
Route::rule('useraddpage','admin/User/userAddPage');
Route::rule('useradd','admin/User/userAdd');
Route::rule('userupdatepage','admin/User/userUpdatePage');
Route::rule('userupdate','admin/User/userUpdate');
Route::rule('userdelete','admin/User/userDelete');

//Goods 商品模块路由
Route::rule('goodslist','admin/Goods/goodsList');
Route::rule('goodsaddpage','admin/Goods/goodsAddPage');
Route::rule('goodsadd','admin/Goods/goodsAdd');
Route::rule('goodsupdatepage','admin/Goods/goodsUpdatePage');
Route::rule('goodsupdate','admin/Goods/goodsUpdate');
return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
